import request from '@/utils/request'

export function listRoom(query) {
  return request({
    url: '/renovationRecord/list',
    method: 'get',
    params: query
  })
}

export function createRoom(data) {
  return request({
    url: '/renovationRecord/add',
    method: 'post',
    data
  })
}

export function updateRoom(data) {
  return request({
    url: '/renovationRecord/update',
    method: 'post',
    data
  })
}

export function deleteRoom(data) {
  return request({
    url: '/renovationRecord/delete',
    method: 'post',
    data
  })
}

export function roomOptions(query) {
  return request({
    url: '/house/options',
    method: 'get',
    params: query
  })
}
